#!/usr/bin/python

a = 4
b = 8

print "a = %d , b = %d"%(a,b)
print "a&b => " + str(a&b)
print "a | b => " + str(a|b)
print "a^b => " + str(a^b)
print "~a => " + str(~a)
print "<< => " + str(a << 2)
print ">> => " + str(a >> 2)
